import request from '@/sheep/request';

export default {
  //陪伴开始
  // 新增朋友圈
  addAccompany: (data) => {
    return request({
      url: `/comment/record/create`,
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      }
    })
  },
  // 评论点评
  addComment: (data) => {
    return request({
      url: `/comment/record/review`,
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      }
    })
  },
  // 删除评论
  delComment: (params) => {
    return request({
      url: `/comment/record/delete-by-review`,
      method: 'DELETE',
      params
    })
  },
  // 点赞点评
  addLike: (data) => {
    return request({
      url: `/comment/record/like`,
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      }
    })
  },

  // 取消点赞点评
  deleteLike: (params) => {
    return request({
      url: `/comment/record/delete`,
      method: 'DELETE',
      params
    });
  },
  // 获取点评列表分页
  getAccompanyList: (params) => {
    return request({
      url: `/comment/record/page-by-mgr`,
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      }
    });
  },

  // 删除发布内容
  deleteContent: (params) => {
    return request({
      url: `/comment/record/delete-by-id`,
      method: 'DELETE',
      params
    })
  },

  // 陪伴结束


  // 成长开始

  // 新增成长记录

  addGrowthRecord: (data) => {
    return request({
      url: `/comment/growth-record/create`,
      method: 'POST',
      data,
      custom: {
        showLoading: true,
        auth: true,
      }
    })
  },

  // 获取上个记录升高体重
  getGrowthRecord: (params) => {
    return request({
      url: `/comment/growth-record/get-last`,
      method: 'GET',
      params,
      custom: {
        showLoading: true,
        auth: true,
      }
    });
  }
  // 成长结束
};